package com.lalifa.googledate.util

import com.lalifa.googledate.util.Tool.Companion.MONTH
import com.lalifa.googledate.util.Tool.Companion.WEEK
import com.lalifa.googledate.util.Tool.Companion.YEAR

fun Int.isXWeeklyRepetition() = this != 0 && this % WEEK == 0

fun Int.isXMonthlyRepetition() = this != 0 && this % MONTH == 0

fun Int.isXYearlyRepetition() = this != 0 && this % YEAR == 0
